//
//  Helper.h
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>


@interface Helper : NSObject

//字符串文字的长度
+(CGFloat)widthOfString:(NSString *)string font:(UIFont*)font height:(CGFloat)height;

//字符串文字的高度
+(CGFloat)heightOfString:(NSString *)string font:(UIFont*)font width:(CGFloat)width;

//获取今天的日期：年月日
+(NSDictionary *)getTodayDate;

+ (BOOL) textIsEmpty:(NSString *)str;

//邮箱
+ (BOOL) justEmail:(NSString *)email;

//手机号码验证
+ (BOOL) justMobile:(NSString *)mobile;

//车牌号验证
+ (BOOL) justCarNo:(NSString *)carNo;

//车型
+ (BOOL) justCarType:(NSString *)CarType;

//用户名
+ (BOOL) justUserName:(NSString *)name;

//密码
+ (BOOL) justPassword:(NSString *)passWord;

//昵称
+ (BOOL) justNickname:(NSString *)nickname;

//身份证号
+ (BOOL) justIdentityCard: (NSString *)identityCard;

//是否包含汉字
+ (BOOL) containChineseWord:(NSString *)contentStr;

// 必须包含数字和字母的6-16位密码
+ (BOOL) justCorrentPassword:(NSString *)password;

// 是否是纯数字
+ (BOOL) justAllNumber:(NSString *)string;

// 是否是交易密码
+ (BOOL) justTradePassword:(NSString *)password;

// 判断是否为整形：
+ (BOOL)isPureInt:(NSString*)string;

// 判断是否为浮点形：
+ (BOOL)isPureFloat:(NSString*)string;

// 判断是否为qq号码
+ (BOOL)justQQNumber:(NSString *)qq;
// 判断是否为6位数字验证码
+ (BOOL)justNoteCode:(NSString *)code;
@end


